<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script src="./index.js"></script>
<script>
	// 成功回调与失败回调默认值
	const p = new Promise(function(resolve,reject){
		reject(1);
	});
	// 相当于：const p1 = p.then(value=>value,reason=>{throw reason})
	const p1 = p.then();
	console.log(p1);
</script>

</html>